From: Glenn Morris Date: Fri, 22 Feb 2013 02:33:42 +0000 (-0500) Subject: Use derived-mode-p in previous change X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~3615^2~711 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2c7d2007671a661f7b147b0e80f60bfe9271e071;p=emacs.git Use derived-mode-p in previous change --- diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index a56a924c78c..fb0dc84b0e1 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -62,7 +62,7 @@ a DOCTYPE or an XML declaration." (set-default sym val) (mapc (lambda (buff) (with-current-buffer buff - (and (eq major-mode 'sgml-mode) + (and (derived-mode-p 'sgml-mode) (not sgml-xml-mode) (setq skeleton-transformation-function val)))) (buffer-list)))